Skip to content

Conversation

marko-bekhta
Copy link
Member

and keep it as an SPI, since it is extended in Hibernate Search.

I've reverted the change just for the AbstractQuery, but since it extends the others, do we keep them as SPI too (i.e. should I revert that entire commit or just this one class?)

See


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


adn keep it as an SPI, since it is extended in Hibernate Search
@hibernate-github-bot
Copy link

Thanks for your pull request!

This pull request does not follow the contribution rules. Could you have a look?

❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
    ↳ Offending commits: [482cd86]

› This message was automatically generated.

@gavinking
Copy link
Member

Honestly I think the best way forward here is for Search to stop relying on these implementation classes, which, quite frankly, aren't sufficiently stable across releases to be legitimately treated as SPIs. Surely there's some way for Search to eliminate this dependence.

I know AbstractQuery doesn't have Impl in its name, but it is an Impl. You can see that by noticing that it;s the abstract supertype of Impl classes.

@marko-bekhta
Copy link
Member Author

hmm ok ...

hey @yrodiere , so with that ^ do you think I should just deprecate the HibernateOrmSearchQueryAdapter and all the public APIs where it is returned/expected?

@yrodiere
Copy link
Member

hey @yrodiere , so with that ^ do you think I should just deprecate the HibernateOrmSearchQueryAdapter and all the public APIs where it is returned/expected?

Fine by me. It was mostly useful for people migrating from Hibernate Search 5.x, where ORM's Query interface was the only way to query Hibernate Search. But it has been a very secondary feature for a while now, some it's reasonable to see it gone in Search 9.0, I think?

@yrodiere
Copy link
Member

yrodiere commented Jul 29, 2025

(And it probably means the 5.x migration helpers should disappear in Search 9.x too, since they absolutely need AbstractQuery)

@marko-bekhta
Copy link
Member Author

Thanks, I'll deprecate things in Search then; and close this PR 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants